package com.hzt.agprosaleplatform.service.impl;

import com.hzt.agprosaleplatform.service.ShopNotificationService;
import org.springframework.stereotype.Service;

/**
 * 商家通知服务实现类
 * 目前通过控制台输出模拟通知发送，实际项目中可以集成邮件、短信或站内信系统
 */
@Service
public class ShopNotificationServiceImpl implements ShopNotificationService {
    
    @Override
    public void sendApprovalNotification(String shopId, Integer goodsId, String message) {
        // 模拟发送通知（实际项目中可以发送邮件、短信或站内信）
        System.out.println("【商品审核通过通知】商家ID: " + shopId + ", 商品ID: " + goodsId + ", 消息: " + message);
    }
    
    @Override
    public void sendRejectionNotification(String shopId, Integer goodsId, String reason) {
        // 模拟发送通知（实际项目中可以发送邮件、短信或站内信）
        System.out.println("【商品审核拒绝通知】商家ID: " + shopId + ", 商品ID: " + goodsId + ", 拒绝原因: " + reason);
    }
}